package com.shushan.exam.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: ExerciseVideoBean
 * @Desciption: 习题视频讲解
 * @author: yichaohua
 * @date: 2018-04-18
 */
public class ExerciseVideoBean extends NetBaseBean {

    public int id;
    public String video_title;
    public String video_desc;
    public String video_url;
    public String video_size;
    public String cover;
    public String video_teacher;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        video_title = jsonObject.optString("video_title","");
        video_desc = jsonObject.optString("video_desc","");
        video_url = jsonObject.optString("video_url","");
        video_size = jsonObject.optString("video_size","");
        cover = jsonObject.optString("cover","");
        video_teacher = jsonObject.optString("video_teacher","");
    }
}
